package com.shopoo.dto.cqe;


import com.shopoo.dto.Command;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * @Description:
 * @Auther: limy66
 * @Date: 2021/03/23/16:22
 */
@Data
public class UserCheckCmd extends Command {

    @Schema(title = "用户名")
    @NotEmpty(message = "用户名不能为空")
    @Size(min = 2, max = 50, message = "用户名长度必须大于等于2个字符且小于等于50个字符")
    private String username;
}
